/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __LIBFUNC_H__
#define __LIBFUNC_H__

namespace liba
{

template<class T>
class compare_name_ptr
{
public:
	compare_name_ptr(const T & name ):
		name(name){};

	template<class U>
	bool operator()(const U & obj)
	{
		return obj->get_name().c_str() == name; ///< FIXME: obj->get_name() == name;
	}
private:
	T name;
};

}//namespace liba

using namespace liba;

#endif //__LIBFUNC_H__